package lol.clann.bukkit.pluginboot.config.jackson.nbt;

import lombok.Getter;

import java.util.function.Function;

/**
 * @author pyz
 * @date 2018/10/12 下午7:36
 */
@Getter
public class NBTConventorNode {
    private final String key;
    private final Class type;
    private final Function<Object, String> serializer;
    private final Function<String, Object> deserializer;

    public NBTConventorNode(String key, Class type, Function<Object, String> serializer, Function<String, Object> deserializer) {
        this.key = key;
        this.type = type;
        this.serializer = serializer;
        this.deserializer = deserializer;
    }
}
